load("@rules_java//java:defs.bzl", "java_library")
load("//:testing.bzl", "junit4_test_suites")

package(default_applicable_licenses = ["//:license"])

java_library(
    name = "tests",
    testonly = True,
    srcs = glob(["*.java"]),
    deps = [
        "//:java_truth",
        "//common:cel_ast",
        "//common:compiler_common",
        "//common:container",
        "//common:mutable_ast",
        "//common:options",
        "//common/ast",
        "//common/ast:mutable_expr",
        "//common/navigation",
        "//common/navigation:common",
        "//common/navigation:mutable_navigation",
        "//common/types",
        "//compiler",
        "//compiler:compiler_builder",
        "//parser:macro",
        "//parser:operator",
        "@cel_spec//proto/cel/expr/conformance/proto3:test_all_types_java_proto",
        "@maven//:com_google_guava_guava",
        "@maven//:com_google_testparameterinjector_test_parameter_injector",
        "@maven//:junit_junit",
    ],
)

junit4_test_suites(
    name = "test_suites",
    sizes = [
        "small",
    ],
    src_dir = "src/test/java",
    deps = [":tests"],
)
